package cn.dxs.adt.view.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewDebug.ExportedProperty;
import android.widget.TextView;

/**
 * 自定义跑马灯的TextView控件
 *
 * @author lijian
 * @date 2019/2/26 14:24
 */
public class FocusedTextView extends androidx.appcompat.widget.AppCompatTextView {

    public FocusedTextView(Context context) {
        super(context);
    }

    public FocusedTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public FocusedTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    /**
     * “欺骗”系统，让控件永远获得焦点
     */
    @Override
    public boolean isFocused() {
        return true;
    }

}
